using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Domain.Entities
{
    public partial class Category
    {
        public Category()
        {
            this.Produces = new HashSet<Produce>();
        }

        public int Id { get; set; }
        [Required(ErrorMessage = "*")]
        public string Name { get; set; }
        [Required(ErrorMessage = "*")]
        public string EnglishName { get; set; }

        public virtual ICollection<Produce> Produces { get; set; }
    }
}
